package day8.pm;
import java.util.*;

public class TestArrayFill {
    public static void main(String[] args) {
        int[] a = {1,2,3,4,5,6};
        int[] temp = Arrays.copyOfRange(a, 3,5);
//        Arrays.fill(a, 8);
        Arrays.fill(a, 4, 5, 0);
        for(int x : a){
            System.out.println(x);
        }
        System.out.println("  ");
        for(int t : temp){
            System.out.println(t);
        }

    }
}
